WIP: Switch to NixOS #5
3 changed files with 87 additions and 76 deletions
70
common.nix
70
common.nix
|
@ -1,7 +1,75 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./gpg.nix ];
|
imports = [
|
||||||
|
./users.nix
|
||||||
|
./gpg.nix
|
||||||
|
];
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Helsinki";
|
||||||
|
|
||||||
|
i18n = {
|
||||||
|
defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "fi_FI.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "fi_FI.UTF-8";
|
||||||
|
LC_MEASUREMENT = "fi_FI.UTF-8";
|
||||||
|
LC_MONETARY = "fi_FI.UTF-8";
|
||||||
|
LC_NAME = "fi_FI.UTF-8";
|
||||||
|
LC_NUMERIC = "fi_FI.UTF-8";
|
||||||
|
LC_PAPER = "fi_FI.UTF-8";
|
||||||
|
LC_TELEPHONE = "fi_FI.UTF-8";
|
||||||
|
LC_TIME = "fi_FI.UTF-8";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
displayManager.gdm.enable = true;
|
||||||
|
desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
|
xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pipewire = {
|
||||||
|
enable = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
|
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
nativeMessagingHosts.packages = [ pkgs.browserpass ];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
neovim
|
||||||
|
telegram-desktop
|
||||||
|
zsh
|
||||||
|
neofetch
|
||||||
|
usbutils
|
||||||
|
wl-clipboard
|
||||||
|
git
|
||||||
|
pass
|
||||||
|
gnumake
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,79 +12,5 @@
|
||||||
wireless.iwd.enable = true;
|
wireless.iwd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
boot.initrd.luks.devices."luks-cf2ca44e-d8d1-4ec8-a072-921f29ed693d".device = "/dev/disk/by-uuid/cf2ca44e-d8d1-4ec8-a072-921f29ed693d";
|
||||||
initrd.luks.devices."luks-cf2ca44e-d8d1-4ec8-a072-921f29ed693d".device = "/dev/disk/by-uuid/cf2ca44e-d8d1-4ec8-a072-921f29ed693d";
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "Europe/Helsinki";
|
|
||||||
|
|
||||||
i18n = {
|
|
||||||
defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "fi_FI.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "fi_FI.UTF-8";
|
|
||||||
LC_MEASUREMENT = "fi_FI.UTF-8";
|
|
||||||
LC_MONETARY = "fi_FI.UTF-8";
|
|
||||||
LC_NAME = "fi_FI.UTF-8";
|
|
||||||
LC_NUMERIC = "fi_FI.UTF-8";
|
|
||||||
LC_PAPER = "fi_FI.UTF-8";
|
|
||||||
LC_TELEPHONE = "fi_FI.UTF-8";
|
|
||||||
LC_TIME = "fi_FI.UTF-8";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager.gdm.enable = true;
|
|
||||||
desktopManager.gnome.enable = true;
|
|
||||||
|
|
||||||
xkb = {
|
|
||||||
layout = "us";
|
|
||||||
variant = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
|
|
||||||
users.users.functionalhacker = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Marko Korhonen";
|
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
|
||||||
packages = with pkgs; [
|
|
||||||
# thunderbird
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.firefox = {
|
|
||||||
enable = true;
|
|
||||||
nativeMessagingHosts.packages = [ pkgs.browserpass ];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
neovim
|
|
||||||
telegram-desktop
|
|
||||||
zsh
|
|
||||||
neofetch
|
|
||||||
usbutils
|
|
||||||
wl-clipboard
|
|
||||||
git
|
|
||||||
pass
|
|
||||||
gnumake
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
17
users.nix
Normal file
17
users.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
users.users = {
|
||||||
|
functionalhacker = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Marko";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
som = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Som";
|
||||||
|
extraGroups = [ "networkmanager" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue