-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
242 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,6 @@ | |
]; | ||
|
||
enableNixpkgsReleaseCheck = true; | ||
|
||
stateVersion = "22.11"; | ||
}; | ||
|
||
xdg.userDirs = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
custom = { | ||
users.christian.enable = true; | ||
}; | ||
|
||
home.stateVersion = import ./state-version.nix; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
users.demo.enable = true; | ||
roles.desktop.enable = true; | ||
}; | ||
|
||
home.stateVersion = import ./state-version.nix; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"23.05" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
base.non-nixos.enable = true; | ||
users.christian.enable = true; | ||
}; | ||
|
||
home.stateVersion = import ./state-version.nix; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,6 @@ | |
web.enable = true; | ||
}; | ||
}; | ||
|
||
home.stateVersion = import ./state-version.nix; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"23.05" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ config, lib, pkgs, ... } @ args: | ||
|
||
with lib; | ||
|
||
let | ||
|
||
cfg = config.custom.programs.direnv; | ||
|
||
in | ||
|
||
{ | ||
options = { | ||
custom.programs.direnv = { | ||
enable = mkEnableOption "Direnv config"; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
# Nix options for derivations to persist garbage collection | ||
nix.extraOptions = '' | ||
keep-outputs = true | ||
keep-derivations = true | ||
''; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
|
||
cfg = config.custom.roles.gaming; | ||
|
||
in | ||
|
||
{ | ||
options = { | ||
custom.roles.gaming = { | ||
enable = mkEnableOption "Gaming computer config"; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
# open ports for steam stream and some games | ||
networking.firewall.allowedTCPPorts = [ 27036 27037 ] ++ (range 27015 27030); | ||
networking.firewall.allowedUDPPorts = [ 4380 27036 ] ++ (range 27000 27031); | ||
|
||
programs.steam.enable = true; | ||
|
||
# Gaming 32bit | ||
#hardware.opengl.driSupport32Bit = true; | ||
#hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ]; | ||
#hardware.pulseaudio.support32Bit = true; | ||
|
||
# Xbox controller | ||
hardware.xpadneo.enable = true; | ||
#boot.extraModprobeConfig = '' options bluetooth disable_ertm=1 ''; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
|
||
cfg = config.custom.roles.printing; | ||
|
||
in | ||
|
||
{ | ||
options = { | ||
custom.roles.printing = { | ||
enable = mkEnableOption "Printing config"; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
services.printing = { | ||
enable = true; | ||
drivers = [ pkgs.hplip ]; | ||
}; | ||
|
||
hardware = { | ||
printers.ensurePrinters = [{ | ||
name = "pr-hp-chr"; | ||
location = "Home Office"; | ||
description = "HP Officejet Pro 8600 Plus"; | ||
deviceUri = "hp:/net/Officejet_Pro_8600?hostname=pr-hp-chr"; | ||
model = "drv:///hp/hpcups.drv/hp-officejet_pro_8600.ppd"; | ||
ppdOptions = { | ||
"PageSize" = "A4"; | ||
"Duplex" = "DuplexNoTumble"; | ||
"InputSlot" = "Tray2"; | ||
"ColorModel" = "KGray"; | ||
"MediaType" = "Plain"; | ||
"OutputMode" = "Normal"; | ||
"OptionDuplex" = "True"; | ||
}; | ||
}]; | ||
|
||
sane = { | ||
enable = true; | ||
extraBackends = [ pkgs.hplip ]; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
|
||
cfg = config.custom.roles.sound; | ||
|
||
in | ||
|
||
{ | ||
options = { | ||
custom.roles.sound = { | ||
enable = mkEnableOption "Audio config"; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
sound.enable = true; | ||
hardware = { | ||
bluetooth.enable = true; | ||
pulseaudio = { | ||
enable = true; | ||
package = pkgs.pulseaudioFull; | ||
}; | ||
}; | ||
environment.systemPackages = [ pkgs.pavucontrol ]; | ||
}; | ||
} |
Oops, something went wrong.