migrates config further
This commit is contained in:
parent
d44b7ebdaa
commit
95fd98e0ae
6 changed files with 72 additions and 2 deletions
17
modules/desktop/default.nix
Normal file
17
modules/desktop/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
flake.modules.nixos.desktop =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.displayManager.cosmic-greeter.enable = true;
|
||||||
|
services.desktopManager.cosmic.enable = true;
|
||||||
|
services.system76-scheduler.enable = true;
|
||||||
|
|
||||||
|
environment.cosmic.excludePackages = with pkgs; [
|
||||||
|
cosmic-term
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: Persist ~/.config/cosmic after setup
|
||||||
|
# and symlink it with home manager
|
||||||
|
}
|
||||||
10
modules/drawing-tablet/default.nix
Normal file
10
modules/drawing-tablet/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
flake.modules.nixos.drawing-tablet =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
hardware.opentabletdriver.enable = true;
|
||||||
|
hardware.uinput.enable = true;
|
||||||
|
boot.kernelModules = [ "uinput" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
8
modules/gaming/default.nix
Normal file
8
modules/gaming/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
flake.modules.nixos.gaming =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.gamemode.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -6,12 +6,14 @@ in
|
||||||
flake.nixosConfigurations.dnsc-machine = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations.dnsc-machine = inputs.nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = with config.flake.modules.nixos; [
|
modules = with config.flake.modules.nixos; [
|
||||||
# Modules
|
|
||||||
home-manager
|
home-manager
|
||||||
base
|
base
|
||||||
|
nvidia-graphics
|
||||||
|
graphics-tablet
|
||||||
|
printing
|
||||||
shell
|
shell
|
||||||
|
desktop
|
||||||
|
|
||||||
# Machine-specific configuration
|
|
||||||
{
|
{
|
||||||
imports = [ ./_hardware-configuration.nix ];
|
imports = [ ./_hardware-configuration.nix ];
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
|
|
|
||||||
20
modules/nvidia-graphics/default.nix
Normal file
20
modules/nvidia-graphics/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
flake.modules.nixos.nvidia-graphics =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
hardware = {
|
||||||
|
graphics.enable = true;
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = false;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
open = true;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
};
|
||||||
|
}
|
||||||
13
modules/printing/default.nix
Normal file
13
modules/printing/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
flake.modules.nixos.printing =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.printing.enable = true;
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns4 = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue