Compare commits
8 Commits
7ec042f299
...
456b0d083f
Author | SHA1 | Date | |
---|---|---|---|
456b0d083f | |||
2860b842e3 | |||
6763726f3f | |||
05d7dc4228 | |||
598fca08d7 | |||
5be2b9957d | |||
87bd96875d | |||
ecba64e78c |
21
flake.nix
21
flake.nix
@ -156,21 +156,12 @@
|
|||||||
hostname = "slab";
|
hostname = "slab";
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
};
|
};
|
||||||
nullbox = lib.nixosSystem rec {
|
|
||||||
|
nullbox = mkSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
hostname = "nullbox";
|
||||||
./hosts/nullbox/configuration.nix
|
|
||||||
./system/remote.nix
|
|
||||||
./system/plasma.nix
|
|
||||||
./system/fragments/hardware/nvidia-modeset.nix
|
|
||||||
./system/gaming.nix
|
|
||||||
(homeManagerInit {
|
|
||||||
module = import ./hosts/nullbox/home.nix;
|
|
||||||
inherit system;
|
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
}; # end nixosConfigurations
|
||||||
};
|
}; # end outputs
|
||||||
}
|
} # end flake
|
||||||
|
@ -7,15 +7,25 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
imports =
|
||||||
|
[ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
fileSystems."/ntfs" = {
|
fileSystems."/ntfs" = {
|
||||||
fsType = "ntfs-3g";
|
fsType = "ntfs-3g";
|
||||||
device = "/dev/disk/by-uuid/6AC23F0FC23EDF4F";
|
device = "/dev/disk/by-uuid/6AC23F0FC23EDF4F";
|
||||||
};
|
};
|
||||||
|
|
||||||
imports =
|
# nixfiles
|
||||||
[ # Include the results of the hardware scan.
|
nixfiles = {
|
||||||
./hardware-configuration.nix
|
common.remoteAccess.enable = true;
|
||||||
];
|
sessions.plasma.enable = true;
|
||||||
|
hardware.nvidia.modesetting.enable = true;
|
||||||
|
packageSets.gaming.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# cryptsetup
|
# cryptsetup
|
||||||
boot.initrd.luks.devices = {
|
boot.initrd.luks.devices = {
|
||||||
@ -78,6 +88,7 @@
|
|||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "23.11"; # Did you read the comment?
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
{ lib, pkgs, osConfig, ... }:
|
{ lib, pkgs, osConfig, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../home/common.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
nixfiles.profile.base.enable = true;
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,10 @@
|
|||||||
nixfiles = {
|
nixfiles = {
|
||||||
common.remoteAccess.enable = true;
|
common.remoteAccess.enable = true;
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
packageSets.gaming.enable = true;
|
packageSets = {
|
||||||
|
gaming.enable = true;
|
||||||
|
fun.enable = true;
|
||||||
|
};
|
||||||
sessions.hyprland.enable = true;
|
sessions.hyprland.enable = true;
|
||||||
sessions.plasma.enable = lib.mkDefault false;
|
sessions.plasma.enable = lib.mkDefault false;
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,7 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
users.users.nullbite = {
|
users.users.nullbite = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ] ++ lib.optional config.nixfiles.packageSets.fun.enable "input";
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
keychain
|
keychain
|
||||||
];
|
];
|
||||||
|
@ -10,6 +10,7 @@ in
|
|||||||
./profile
|
./profile
|
||||||
./programs
|
./programs
|
||||||
./sessions
|
./sessions
|
||||||
|
./testing
|
||||||
];
|
];
|
||||||
config = {};
|
config = {};
|
||||||
options.nixfiles = {
|
options.nixfiles = {
|
||||||
|
@ -3,5 +3,6 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
./multimedia.nix
|
./multimedia.nix
|
||||||
|
./fun.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
28
system/package-sets/fun.nix
Normal file
28
system/package-sets/fun.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ pkgs, config, lib, ...}:
|
||||||
|
let
|
||||||
|
cfg = config.nixfiles.packageSets.fun;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
options.nixfiles.packageSets.fun = {
|
||||||
|
enable = lib.mkEnableOption "fun package set";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
cowsay
|
||||||
|
uwufetch
|
||||||
|
fortune
|
||||||
|
pipes
|
||||||
|
hollywood
|
||||||
|
sl
|
||||||
|
figlet
|
||||||
|
aalib
|
||||||
|
asciiquarium
|
||||||
|
] ++ lib.optionals config.services.xserver.enable [
|
||||||
|
oneko
|
||||||
|
] ++ lib.optionals config.sound.enable [
|
||||||
|
bucklespring-libinput
|
||||||
|
espeak
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
6
system/testing/default.nix
Normal file
6
system/testing/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{...}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./mutability.nix
|
||||||
|
];
|
||||||
|
}
|
22
system/testing/mutability.nix
Normal file
22
system/testing/mutability.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.nixfiles.testing.mutability;
|
||||||
|
file = pkgs.writeTextFile {
|
||||||
|
name = "test";
|
||||||
|
text = ''
|
||||||
|
meow!
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.nixfiles.testing.mutability = {
|
||||||
|
enable = lib.mkEnableOption "mutability test";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
environment.etc.mutability-test = {
|
||||||
|
mode = "0644";
|
||||||
|
source = file;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user