another one
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,5 +1 @@
|
||||
nix/
|
||||
nix/sources.json
|
||||
nix/sources.nix
|
||||
.direnv
|
||||
.pre-commit-config.yaml
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
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;
|
||||
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 = [
|
||||
# shared imports
|
||||
./dconf
|
||||
./fonts
|
||||
./locale
|
||||
# ./nix-ld
|
||||
./security
|
||||
./xdg
|
||||
./zram
|
||||
./zsh
|
||||
];
|
||||
}
|
||||
@@ -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;
|
||||
@@ -3,13 +3,7 @@
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
zramSwap.enable = true;
|
||||
|
||||
hardware = {
|
||||
logitech.wireless = {
|
||||
enable = true;
|
||||
enableGraphical = true;
|
||||
};
|
||||
graphics = {
|
||||
enable = 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 = {
|
||||
enable = true;
|
||||
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