Compare commits
2 commits
d011815d05
...
db4eaee487
Author | SHA1 | Date | |
---|---|---|---|
db4eaee487 | |||
148b78f8dc |
15 changed files with 144 additions and 119 deletions
|
@ -1,94 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./home-manager.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
||||
console = {
|
||||
earlySetup = true;
|
||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
|
||||
packages = with pkgs; [ terminus_font ];
|
||||
keyMap = "us";
|
||||
};
|
||||
|
||||
environment.sessionVariables = rec {
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
supportedLocales = [
|
||||
"en_US.UTF-8/UTF-8"
|
||||
"nl_NL.UTF-8/UTF-8"
|
||||
];
|
||||
};
|
||||
|
||||
users.users.sijmen = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "docker" "wireshark" "video" "dialout" "libvirt" ];
|
||||
description = "Sijmen";
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
services = {
|
||||
pipewire.enable = true;
|
||||
gvfs.enable = true;
|
||||
usbmuxd.enable = true;
|
||||
smartd.enable = true;
|
||||
pcscd.enable = true;
|
||||
fwupd.enable = true;
|
||||
|
||||
printing = {
|
||||
enable = true;
|
||||
drivers = with pkgs; [ hplip ];
|
||||
};
|
||||
|
||||
openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
#syncthing = {
|
||||
#enable = true;
|
||||
#user = "sijmen";
|
||||
#dataDir = config.users.users.sijmen.home;
|
||||
#};
|
||||
};
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
corefonts
|
||||
dejavu_fonts
|
||||
iosevka
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
powerline-fonts
|
||||
source-han-sans
|
||||
ubuntu_font_family
|
||||
vistafonts
|
||||
];
|
||||
}
|
10
common/configuration/console.nix
Normal file
10
common/configuration/console.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
console = {
|
||||
earlySetup = true;
|
||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
|
||||
packages = [ pkgs.terminus_font ];
|
||||
keyMap = "us";
|
||||
};
|
||||
}
|
11
common/configuration/environment.nix
Normal file
11
common/configuration/environment.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
environment = {
|
||||
sessionVariables = rec {
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
};
|
||||
}
|
16
common/configuration/fonts.nix
Normal file
16
common/configuration/fonts.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
fonts.fonts = with pkgs; [
|
||||
corefonts
|
||||
dejavu_fonts
|
||||
iosevka
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
powerline-fonts
|
||||
source-han-sans
|
||||
ubuntu_font_family
|
||||
vistafonts
|
||||
];
|
||||
}
|
9
common/configuration/i18n.nix
Normal file
9
common/configuration/i18n.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
supportedLocales = [
|
||||
"en_US.UTF-8/UTF-8"
|
||||
"nl_NL.UTF-8/UTF-8"
|
||||
];
|
||||
};
|
||||
}
|
19
common/configuration/main.nix
Normal file
19
common/configuration/main.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../home-manager/main.nix
|
||||
|
||||
./console.nix
|
||||
./environment.nix
|
||||
./fonts.nix
|
||||
./i18n.nix
|
||||
./nix.nix
|
||||
./services.nix
|
||||
./users.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
programs.zsh.enable = true;
|
||||
}
|
14
common/configuration/nix.nix
Normal file
14
common/configuration/nix.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
};
|
||||
}
|
30
common/configuration/services.nix
Normal file
30
common/configuration/services.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
pipewire.enable = true;
|
||||
gvfs.enable = true;
|
||||
usbmuxd.enable = true;
|
||||
smartd.enable = true;
|
||||
pcscd.enable = true;
|
||||
fwupd.enable = true;
|
||||
|
||||
printing = {
|
||||
enable = true;
|
||||
drivers = [ pkgs.hplip ];
|
||||
};
|
||||
|
||||
openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
#syncthing = {
|
||||
#enable = true;
|
||||
#user = "sijmen";
|
||||
#dataDir = config.users.users.sijmen.home;
|
||||
#};
|
||||
};
|
||||
}
|
10
common/configuration/users.nix
Normal file
10
common/configuration/users.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.sijmen = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "docker" "wireshark" "video" "dialout" "libvirt" ];
|
||||
description = "Sijmen";
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [<home-manager/nixos>];
|
||||
|
||||
home-manager.users.sijmen = {
|
||||
imports = [
|
||||
./home-manager/home.nix
|
||||
./home-manager/gtk.nix
|
||||
./home-manager/systemd.nix
|
||||
./home-manager/programs.nix
|
||||
./home-manager/wayland.nix
|
||||
./home-manager/services.nix
|
||||
./home-manager/accounts.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
};
|
||||
}
|
|
@ -133,7 +133,7 @@
|
|||
ncdu = "${pkgs.ncdu}/bin/ncdu --color dark";
|
||||
|
||||
config = "vim /etc/nixos/configuration.nix";
|
||||
hmconf = "vim /etc/nixos/common/home-manager.nix";
|
||||
hmconf = "vim /etc/nixos/common/home-manager/main.nix";
|
||||
hmhconf = "vim /etc/nixos/common/home-manager/home.nix";
|
||||
switch = "sudo nixos-rebuild switch";
|
||||
|
||||
|
|
20
common/home-manager/main.nix
Normal file
20
common/home-manager/main.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [<home-manager/nixos>];
|
||||
|
||||
home-manager.users.sijmen = {
|
||||
imports = [
|
||||
./home.nix
|
||||
./gtk.nix
|
||||
./systemd.nix
|
||||
./programs.nix
|
||||
./wayland.nix
|
||||
./services.nix
|
||||
./accounts.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
};
|
||||
}
|
|
@ -18,7 +18,7 @@ in
|
|||
<nixos-hardware/framework/12th-gen-intel>
|
||||
./hardware-configuration.nix
|
||||
#lanzaboote.nixosModules.lanzaboote
|
||||
../common/configuration.nix
|
||||
../common/configuration/main.nix
|
||||
];
|
||||
|
||||
virtualisation = {
|
||||
|
@ -223,7 +223,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
#home-manager.users.sijmen.imports = [ ../common/dconf.nix ];
|
||||
home-manager.users.sijmen.imports = [ ../common/dconf.nix ];
|
||||
|
||||
systemd.services."suspend" = {
|
||||
enable = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
../common/configuration.nix
|
||||
../common/configuration/main.nix
|
||||
];
|
||||
|
||||
hardware = {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../common/configuration.nix
|
||||
../common/configuration/main.nix
|
||||
];
|
||||
|
||||
sound.enable = true;
|
||||
|
|
Loading…
Reference in a new issue