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
.pre-commit-config.yaml

View File

@@ -7,10 +7,10 @@
flake.nixosConfigurations = let
# shorten paths
inherit (inputs.nixpkgs.lib) nixosSystem;
mod = "${self}/sys";
mod = "${self}/system";
# 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
specialArgs = {inherit inputs self;};
@@ -21,11 +21,13 @@
cnix
++ [
./cnix
"${mod}/opt/boot/lanzaboote.nix"
"${mod}/opt/hardware/cnix.nix"
"${mod}/opt/network/cnix.nix"
"${mod}/opt/nh/cnix.nix"
"${mod}/opt/xserver/cnix.nix"
"${mod}/boot/lanzaboote"
"${mod}/etc/bluetooth"
"${mod}/etc/graphics/amd"
"${mod}/etc/logitech"
"${mod}/etc/network/cnix"
"${mod}/etc/xserver/amd"
"${mod}/nix/nh/cnix"
{
home-manager = {
users.cnst.imports = homeImports."cnst@cnix";
@@ -43,11 +45,12 @@
toothpc
++ [
./toothpc
"${mod}/opt/boot/lanzaboote.nix"
"${mod}/opt/hardware/toothpc.nix"
"${mod}/opt/network/toothpc.nix"
"${mod}/opt/nh/toothpc.nix"
"${mod}/opt/xserver/toothpc.nix"
"${mod}/boot/lanzaboote"
"${mod}/etc/graphics/nvidia"
"${mod}/etc/logitech"
"${mod}/etc/network/toothpc"
"${mod}/etc/xserver/nvidia"
"${mod}/nix/nh/toothpc"
{
home-manager = {
users.toothpick.imports = homeImports."toothpick@toothpc";
@@ -65,11 +68,12 @@
adampad
++ [
./adampad
"${mod}/opt/boot/boot.nix"
"${mod}/opt/hardware/adampad.nix"
"${mod}/opt/network/adampad.nix"
"${mod}/opt/nh/adampad.nix"
"${mod}/opt/xserver/adampad.nix"
"${mod}/boot"
"${mod}/etc/bluetooth"
"${mod}/etc/graphics/amd"
"${mod}/etc/network/adampad"
"${mod}/etc/xserver/amd"
"${mod}/nix/nh/adampad"
{
home-manager = {
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
shared = [
./nixos
./etc
./bin
./etc
./nix
./srv
./usr/share
];
adampad =
@@ -15,16 +16,16 @@ let
cnix =
shared
++ [
./bin/gaming.nix
./bin/android
./bin/gimp
./bin/inkscape
./usr/bin/gaming.nix
./usr/bin/android
./usr/bin/gimp
./usr/bin/inkscape
./srv/blueman
];
toothpc =
shared
++ [
./bin/gaming.nix
./usr/bin/gaming.nix
];
in {
inherit shared adampad cnix toothpc;

View File

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

View File

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

View File

@@ -1,15 +1,5 @@
{pkgs, ...}: {
zramSwap.enable = true;
hardware = {
bluetooth = {
enable = true;
powerOnBoot = false;
};
logitech.wireless = {
enable = true;
enableGraphical = true;
};
graphics = {
enable = true;
enable32Bit = true;

View File

@@ -3,13 +3,7 @@
config,
...
}: {
zramSwap.enable = true;
hardware = {
logitech.wireless = {
enable = true;
enableGraphical = true;
};
graphics = {
enable = 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 = {
enable = true;
videoDrivers = ["amdgpu"];

View File

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

View File

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