Initial configuration
This commit is contained in:
commit
4802279787
28 changed files with 1890 additions and 0 deletions
99
system/shared.nix
Normal file
99
system/shared.nix
Normal file
|
@ -0,0 +1,99 @@
|
|||
{pkgs, user, ...}: {
|
||||
|
||||
documentation.nixos.enable = false;
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
warn-dirty = false;
|
||||
experimental-features = "nix-command flakes";
|
||||
auto-optimise-store = true;
|
||||
substituters = ["https://nix-gaming.cachix.org"];
|
||||
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelParams = ["nohibernate"];
|
||||
tmp.cleanOnBoot = true;
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
grub = {
|
||||
device = "nodev";
|
||||
efiSupport = true;
|
||||
enable = true;
|
||||
useOSProber = true;
|
||||
timeoutStyle = "menu";
|
||||
};
|
||||
timeout = 300;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
enableIPv6 = false;
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/London";
|
||||
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
|
||||
services = {
|
||||
flatpak.enable = true;
|
||||
dbus.enable = true;
|
||||
picom.enable = true;
|
||||
|
||||
xserver = {
|
||||
enable = true;
|
||||
windowManager.i3.enable = true;
|
||||
layout = "us";
|
||||
|
||||
displayManager = {
|
||||
lightdm.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users.users.vylpes = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"docker"
|
||||
"flatpak"
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
};
|
||||
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
font-awesome
|
||||
hack-font
|
||||
];
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
monospace = ["Hack"];
|
||||
serif = ["Noto Serif" "Source Han Serif"];
|
||||
sansSerif = ["Noto Sans" "Source Han Sans"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
21
system/vylpes-desktop/configuration.nix
Normal file
21
system/vylpes-desktop/configuration.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{pkgs, user, ...}: {
|
||||
|
||||
imports = [
|
||||
../shared.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "vylpes-desktop";
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
displayManager = {
|
||||
# FIXME: Add proper xranger script for my setup
|
||||
setupCommands = ''
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
2
system/vylpes-desktop/hardware-configuration.nix
Normal file
2
system/vylpes-desktop/hardware-configuration.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
21
system/vylpes-framework/configuration.nix
Normal file
21
system/vylpes-framework/configuration.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{pkgs, user, ...}: {
|
||||
|
||||
imports = [
|
||||
../shared.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "vylpes-framework";
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
displayManager = {
|
||||
# FIXME: Add proper xranger script for my setup
|
||||
setupCommands = ''
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
2
system/vylpes-framework/hardware-configuration.nix
Normal file
2
system/vylpes-framework/hardware-configuration.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
11
system/vylpes-virt/configuration.nix
Normal file
11
system/vylpes-virt/configuration.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{pkgs, user, ...}: {
|
||||
|
||||
imports = [
|
||||
../shared.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "vylpes-virt";
|
||||
};
|
||||
}
|
2
system/vylpes-virt/hardware-configuration.nix
Normal file
2
system/vylpes-virt/hardware-configuration.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue