organise all options into modules
This commit is contained in:
parent
c7c6606d14
commit
3192b6ca09
43 changed files with 518 additions and 423 deletions
5
system/modules/cosmic.nix
Normal file
5
system/modules/cosmic.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
services.desktopManager.cosmic.enable = true;
|
||||
services.displayManager.cosmic-greeter.enable = true;
|
||||
services.system76-scheduler.enable = true;
|
||||
}
|
10
system/modules/docs.nix
Normal file
10
system/modules/docs.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
man-pages
|
||||
man-pages-posix
|
||||
];
|
||||
|
||||
documentation.dev.enable = true;
|
||||
documentation.man.enable = true;
|
||||
documentation.enable = true;
|
||||
}
|
13
system/modules/network.nix
Normal file
13
system/modules/network.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{...}: {
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
systemd.services.NetworkManager-wait-online.enable = true; # for some reason nm doesn't enable without this
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
fallbackDns = ["103.1.206.179" "168.138.8.38" "168.138.12.137"];
|
||||
dnssec = "false";
|
||||
};
|
||||
services.mullvad-vpn.enable = true;
|
||||
networking.firewall = {
|
||||
checkReversePath = "loose";
|
||||
};
|
||||
}
|
8
system/modules/nix-meta.nix
Normal file
8
system/modules/nix-meta.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nixd
|
||||
home-manager
|
||||
cachix
|
||||
alejandra
|
||||
];
|
||||
}
|
9
system/modules/sound.nix
Normal file
9
system/modules/sound.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{...}: {
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
6
system/modules/sydney.nix
Normal file
6
system/modules/sydney.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{...}: {
|
||||
time.timeZone = "Australia/Sydney";
|
||||
time.hardwareClockInLocalTime = false;
|
||||
i18n.defaultLocale = "en_AU.UTF-8";
|
||||
i18n.supportedLocales = ["en_AU.UTF-8/UTF-8"];
|
||||
}
|
5
system/modules/systemdboot.nix
Normal file
5
system/modules/systemdboot.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
boot.loader.systemd-boot.consoleMode = "max";
|
||||
boot.loader.timeout = 3;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
}
|
8
system/modules/term.nix
Normal file
8
system/modules/term.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
environment.pathsToLink = ["/share/zsh"];
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue