another one
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,5 +1 @@
|
|||||||
nix/
|
|
||||||
nix/sources.json
|
|
||||||
nix/sources.nix
|
|
||||||
.direnv
|
.direnv
|
||||||
.pre-commit-config.yaml
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
flake.nixosConfigurations = let
|
flake.nixosConfigurations = let
|
||||||
# shorten paths
|
# shorten paths
|
||||||
inherit (inputs.nixpkgs.lib) nixosSystem;
|
inherit (inputs.nixpkgs.lib) nixosSystem;
|
||||||
mod = "${self}/sys";
|
mod = "${self}/system";
|
||||||
|
|
||||||
# get the basic config to build on top of
|
# get the basic config to build on top of
|
||||||
inherit (import "${self}/sys") adampad cnix toothpc;
|
inherit (import "${self}/system") adampad cnix toothpc;
|
||||||
|
|
||||||
# get these into the module system
|
# get these into the module system
|
||||||
specialArgs = {inherit inputs self;};
|
specialArgs = {inherit inputs self;};
|
||||||
@@ -21,11 +21,13 @@
|
|||||||
cnix
|
cnix
|
||||||
++ [
|
++ [
|
||||||
./cnix
|
./cnix
|
||||||
"${mod}/opt/boot/lanzaboote.nix"
|
"${mod}/boot/lanzaboote"
|
||||||
"${mod}/opt/hardware/cnix.nix"
|
"${mod}/etc/bluetooth"
|
||||||
"${mod}/opt/network/cnix.nix"
|
"${mod}/etc/graphics/amd"
|
||||||
"${mod}/opt/nh/cnix.nix"
|
"${mod}/etc/logitech"
|
||||||
"${mod}/opt/xserver/cnix.nix"
|
"${mod}/etc/network/cnix"
|
||||||
|
"${mod}/etc/xserver/amd"
|
||||||
|
"${mod}/nix/nh/cnix"
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.cnst.imports = homeImports."cnst@cnix";
|
users.cnst.imports = homeImports."cnst@cnix";
|
||||||
@@ -43,11 +45,12 @@
|
|||||||
toothpc
|
toothpc
|
||||||
++ [
|
++ [
|
||||||
./toothpc
|
./toothpc
|
||||||
"${mod}/opt/boot/lanzaboote.nix"
|
"${mod}/boot/lanzaboote"
|
||||||
"${mod}/opt/hardware/toothpc.nix"
|
"${mod}/etc/graphics/nvidia"
|
||||||
"${mod}/opt/network/toothpc.nix"
|
"${mod}/etc/logitech"
|
||||||
"${mod}/opt/nh/toothpc.nix"
|
"${mod}/etc/network/toothpc"
|
||||||
"${mod}/opt/xserver/toothpc.nix"
|
"${mod}/etc/xserver/nvidia"
|
||||||
|
"${mod}/nix/nh/toothpc"
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.toothpick.imports = homeImports."toothpick@toothpc";
|
users.toothpick.imports = homeImports."toothpick@toothpc";
|
||||||
@@ -65,11 +68,12 @@
|
|||||||
adampad
|
adampad
|
||||||
++ [
|
++ [
|
||||||
./adampad
|
./adampad
|
||||||
"${mod}/opt/boot/boot.nix"
|
"${mod}/boot"
|
||||||
"${mod}/opt/hardware/adampad.nix"
|
"${mod}/etc/bluetooth"
|
||||||
"${mod}/opt/network/adampad.nix"
|
"${mod}/etc/graphics/amd"
|
||||||
"${mod}/opt/nh/adampad.nix"
|
"${mod}/etc/network/adampad"
|
||||||
"${mod}/opt/xserver/adampad.nix"
|
"${mod}/etc/xserver/amd"
|
||||||
|
"${mod}/nix/nh/adampad"
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.adam.imports = homeImports."adam@adampad";
|
users.adam.imports = homeImports."adam@adampad";
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
powerOnBoot = true;
|
|
||||||
};
|
|
||||||
graphics = {
|
|
||||||
enable = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
libva
|
|
||||||
vaapiVdpau
|
|
||||||
libvdpau-va-gl
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
let
|
let
|
||||||
shared = [
|
shared = [
|
||||||
./nixos
|
|
||||||
./etc
|
|
||||||
./bin
|
./bin
|
||||||
|
./etc
|
||||||
|
./nix
|
||||||
./srv
|
./srv
|
||||||
|
./usr/share
|
||||||
];
|
];
|
||||||
|
|
||||||
adampad =
|
adampad =
|
||||||
@@ -15,16 +16,16 @@ let
|
|||||||
cnix =
|
cnix =
|
||||||
shared
|
shared
|
||||||
++ [
|
++ [
|
||||||
./bin/gaming.nix
|
./usr/bin/gaming.nix
|
||||||
./bin/android
|
./usr/bin/android
|
||||||
./bin/gimp
|
./usr/bin/gimp
|
||||||
./bin/inkscape
|
./usr/bin/inkscape
|
||||||
./srv/blueman
|
./srv/blueman
|
||||||
];
|
];
|
||||||
toothpc =
|
toothpc =
|
||||||
shared
|
shared
|
||||||
++ [
|
++ [
|
||||||
./bin/gaming.nix
|
./usr/bin/gaming.nix
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
inherit shared adampad cnix toothpc;
|
inherit shared adampad cnix toothpc;
|
||||||
8
system/etc/bluetooth/default.nix
Normal file
8
system/etc/bluetooth/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
hardware = {
|
||||||
|
bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
# shared imports
|
||||||
./dconf
|
./dconf
|
||||||
./fonts
|
|
||||||
./locale
|
|
||||||
# ./nix-ld
|
|
||||||
./security
|
./security
|
||||||
./xdg
|
./xdg
|
||||||
|
./zram
|
||||||
./zsh
|
./zsh
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -1,15 +1,5 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
powerOnBoot = false;
|
|
||||||
};
|
|
||||||
logitech.wireless = {
|
|
||||||
enable = true;
|
|
||||||
enableGraphical = true;
|
|
||||||
};
|
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
@@ -3,13 +3,7 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
logitech.wireless = {
|
|
||||||
enable = true;
|
|
||||||
enableGraphical = true;
|
|
||||||
};
|
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
8
system/etc/logitech/default.nix
Normal file
8
system/etc/logitech/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
hardware = {
|
||||||
|
logitech.wireless = {
|
||||||
|
enable = true;
|
||||||
|
enableGraphical = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{config, ...}: {
|
{
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
videoDrivers = ["amdgpu"];
|
videoDrivers = ["amdgpu"];
|
||||||
1
system/etc/zram/default.nix
Normal file
1
system/etc/zram/default.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{zramSwap.enable = true;}
|
||||||
7
system/usr/share/default.nix
Normal file
7
system/usr/share/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# shared imports
|
||||||
|
./fonts
|
||||||
|
./locale
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user