another one

This commit is contained in:
cnst
2024-08-03 14:03:54 +02:00
parent 2b2136dfba
commit e1f070d81a
62 changed files with 56 additions and 72 deletions

4
.gitignore vendored
View File

@@ -1,5 +1 @@
nix/
nix/sources.json
nix/sources.nix
.direnv .direnv
.pre-commit-config.yaml

View File

@@ -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";

View File

@@ -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
];
};
};
}

View File

@@ -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;

View File

@@ -0,0 +1,8 @@
{
hardware = {
bluetooth = {
enable = true;
powerOnBoot = false;
};
};
}

View File

@@ -1,11 +1,10 @@
{ {
imports = [ imports = [
# shared imports
./dconf ./dconf
./fonts
./locale
# ./nix-ld
./security ./security
./xdg ./xdg
./zram
./zsh ./zsh
]; ];
} }

View File

@@ -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;

View File

@@ -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;

View File

@@ -0,0 +1,8 @@
{
hardware = {
logitech.wireless = {
enable = true;
enableGraphical = true;
};
};
}

View File

@@ -1,4 +1,4 @@
{config, ...}: { {
services.xserver = { services.xserver = {
enable = true; enable = true;
videoDrivers = ["amdgpu"]; videoDrivers = ["amdgpu"];

View File

@@ -0,0 +1 @@
{zramSwap.enable = true;}

View File

@@ -0,0 +1,7 @@
{
imports = [
# shared imports
./fonts
./locale
];
}