move home-manager config to subdirectory

This commit is contained in:
Daniel Olsen
2024-08-17 03:17:40 +02:00
parent 08930ba021
commit a6f2ac0868
23 changed files with 1 additions and 7 deletions

26
home/machines/desktop.nix Normal file
View File

@@ -0,0 +1,26 @@
{ config, lib, pkgs, overlays, ... }:
{
nixpkgs.overlays = overlays;
nixpkgs.config.allowUnfreePredicate = (pkg: true);
nixpkgs.config.allowUnfree = true;
imports = [ ../profiles ];
machine = {
name = "DanixDesktop";
eth = "eno1";
wlan = null;
secondary-fs = "/mnt/henning";
};
profiles.base.enable = true;
profiles.base.plus = true;
profiles.xsession.enable = true;
profiles.audio.fancy = true;
profiles.zsh.enable = true;
profiles.games.enable = true;
home.packages = [
pkgs.unstable.osu-lazer
];
}

View File

@@ -0,0 +1,16 @@
{ config, lib, pkgs, overlays, ... }:
{
nixpkgs.overlays = overlays;
imports = [ ../profiles ];
machine = {
name = "Headless";
eth = null;
wlan = null;
secondary-fs = null;
};
profiles.base.enable = true;
profiles.zsh.enable = true;
}

28
home/machines/laptop.nix Normal file
View File

@@ -0,0 +1,28 @@
{ config, lib, pkgs, overlays, ... }:
{
nixpkgs.overlays = overlays;
nixpkgs.config.allowUnfreePredicate = (pkg: true);
nixpkgs.config.allowUnfree = true;
imports = [ ../profiles ];
machine = {
name = "DanixLaptop";
eth = "enp0s31f6";
wlan = "wlp5s0";
cores = 4;
};
profiles.base.enable = true;
profiles.base.plus = true;
profiles.gui.enable = true;
profiles.xsession.enable = true;
profiles.zsh.enable = true;
services.gammastep = {
enable = true;
dawnTime = "7:00-8:15";
duskTime = "21:30-22:30";
};
profiles.games.enable = true;
}

View File

@@ -0,0 +1,39 @@
{ config, lib, pkgs, overlays, ... }:
{
nixpkgs.overlays = overlays;
nixpkgs.config.allowUnfreePredicate = (pkg: true);
imports = [ ../profiles ];
machine = {
name = "PVV Terminal";
eth = null;
wlan = null;
secondary-fs = null;
};
profiles.base.enable = true;
profiles.base.plus = false;
profiles.gui.enable = true;
profiles.non-nixos.enable = true;
profiles.xsession.enable = true;
profiles.zsh.enable = true;
profiles.audio.fancy = false;
profiles.games.enable = false;
services.polybar.config."module/uquota" = {
type = "custom/script";
exec-if = "test -f /usr/local/bin/uquota";
exec = "" + pkgs.writers.writePerl "parse_uquota" { } ''
my $raw = `/usr/local/bin/uquota`;
if ( $raw =~ /Du har brukt (\d+(?:[KMGT]iB)) av (\d+(?:[KMGT]iB)), eller (\d+)/ )
{
print $3 . "%\n";
}
'';
interval = 10;
format = " <label>";
};
}