Compare commits
3 commits
7168ebab38
...
8761dae20c
Author | SHA1 | Date | |
---|---|---|---|
8761dae20c | |||
7aa65ef8f4 | |||
470af133c0 |
14 changed files with 114 additions and 44 deletions
16
flake.lock
16
flake.lock
|
@ -458,16 +458,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726989464,
|
"lastModified": 1733050161,
|
||||||
"narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=",
|
"narHash": "sha256-lYnT+EYE47f5yY3KS/Kd4pJ6CO9fhCqumkYYkQ3TK20=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176",
|
"rev": "62d536255879be574ebfe9b87c4ac194febf47c5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-24.05",
|
"ref": "release-24.11",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -938,16 +938,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732749044,
|
"lastModified": 1732981179,
|
||||||
"narHash": "sha256-T38FQOg0BV5M8FN1712fovzNakSOENEYs+CSkg31C9Y=",
|
"narHash": "sha256-F7thesZPvAMSwjRu0K8uFshTk3ZZSNAsXTIFvXBT+34=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0c5b4ecbed5b155b705336aa96d878e55acd8685",
|
"rev": "62c435d93bf046a5396f3016472e8f7c8e2aed65",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-24.05",
|
"ref": "nixos-24.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Nixpkgs
|
# Nixpkgs
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||||
# You can access packages and modules from different nixpkgs revs
|
# You can access packages and modules from different nixpkgs revs
|
||||||
# at the same time. Here's an working example:
|
# at the same time. Here's an working example:
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
# Also see the 'unstable-packages' overlay at 'overlays/default.nix'.
|
# Also see the 'unstable-packages' overlay at 'overlays/default.nix'.
|
||||||
|
|
||||||
# Home manager
|
# Home manager
|
||||||
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
home-manager.url = "github:nix-community/home-manager/release-24.11";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
hardware.url = "github:nixos/nixos-hardware";
|
hardware.url = "github:nixos/nixos-hardware";
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
# Disable gnome-keyring ssh-agent
|
# Disable gnome-keyring ssh-agent
|
||||||
xdg.configFile."autostart/gnome-keyring-ssh.desktop".text = ''
|
xdg.configFile."autostart/gnome-keyring-ssh.desktop".text = ''
|
||||||
${lib.fileContents "${pkgs.gnome3.gnome-keyring}/etc/xdg/autostart/gnome-keyring-ssh.desktop"}
|
${lib.fileContents "${pkgs.gnome-keyring}/etc/xdg/autostart/gnome-keyring-ssh.desktop"}
|
||||||
Hidden=true
|
Hidden=true
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
imports = [inputs.flatpaks.homeManagerModules.default];
|
imports = [inputs.flatpaks.homeManagerModules.declarative-flatpak];
|
||||||
services.flatpak = {
|
services.flatpak = {
|
||||||
remotes.flathub = "https://flathub.org/repo/flathub.flatpakrepo";
|
remotes.flathub = "https://flathub.org/repo/flathub.flatpakrepo";
|
||||||
packages = [
|
packages = [
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
nix = {
|
nix = {
|
||||||
package = lib.mkDefault pkgs.nix;
|
package = lib.mkDefault pkgs.nix;
|
||||||
settings = {
|
settings = {
|
||||||
experimental-features = ["nix-command" "flakes" "repl-flake"];
|
experimental-features = ["nix-command" "flakes"];
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
firefox.enablePlasmaBrowserIntegration = true;
|
firefox.enablePlasmaBrowserIntegration = true;
|
||||||
segger-jlink.acceptLicense = true;
|
segger-jlink.acceptLicense = true;
|
||||||
permittedInsecurePackages = ["segger-jlink-qt4-794l"];
|
permittedInsecurePackages = ["segger-jlink-qt4-796s"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -16,5 +16,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
services.xserver.layout = "de";
|
services.xserver.xkb.layout = "de";
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
auto-optimise-store = lib.mkDefault true;
|
auto-optimise-store = lib.mkDefault true;
|
||||||
experimental-features = ["nix-command" "flakes" "repl-flake"];
|
experimental-features = ["nix-command" "flakes"];
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
system-features = ["kvm" "big-parallel" "nixos-test"];
|
system-features = ["kvm" "big-parallel" "nixos-test"];
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,45 +7,41 @@
|
||||||
imports = [./global.nix ./x11.nix ./wayland.nix];
|
imports = [./global.nix ./x11.nix ./wayland.nix];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
libinput.enable = true;
|
||||||
xserver = {
|
xserver = {
|
||||||
desktopManager.gnome = {
|
desktopManager.gnome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
libinput.enable = true;
|
|
||||||
modules = [pkgs.xf86_input_wacom];
|
modules = [pkgs.xf86_input_wacom];
|
||||||
wacom.enable = true;
|
wacom.enable = true;
|
||||||
};
|
};
|
||||||
udev.packages = with pkgs; [
|
udev.packages = with pkgs; [
|
||||||
gnome.gnome-settings-daemon
|
gnome-settings-daemon
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
# System-Wide Packages
|
# System-Wide Packages
|
||||||
gnome.adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
gnome.dconf-editor
|
dconf-editor
|
||||||
gnome.gnome-tweaks
|
gnome-tweaks
|
||||||
gnomeExtensions.kimpanel
|
gnomeExtensions.kimpanel
|
||||||
gnomeExtensions.vitals
|
gnomeExtensions.vitals
|
||||||
gnomeExtensions.tray-icons-reloaded
|
gnomeExtensions.tray-icons-reloaded
|
||||||
];
|
];
|
||||||
gnome.excludePackages =
|
gnome.excludePackages = with pkgs; [
|
||||||
(with pkgs; [
|
gnome-tour
|
||||||
# Ignored Packages
|
gedit
|
||||||
gnome-tour
|
atomix
|
||||||
gedit
|
epiphany
|
||||||
])
|
geary
|
||||||
++ (with pkgs.gnome; [
|
gnome-characters
|
||||||
atomix
|
gnome-contacts
|
||||||
epiphany
|
gnome-initial-setup
|
||||||
geary
|
hitori
|
||||||
gnome-characters
|
iagno
|
||||||
gnome-contacts
|
tali
|
||||||
gnome-initial-setup
|
];
|
||||||
hitori
|
|
||||||
iagno
|
|
||||||
tali
|
|
||||||
]);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
i18n.inputMethod = {
|
i18n.inputMethod = {
|
||||||
enabled = "fcitx5";
|
enable = true;
|
||||||
|
type = "fcitx5";
|
||||||
fcitx5.addons = with pkgs; [
|
fcitx5.addons = with pkgs; [
|
||||||
fcitx5-mozc
|
fcitx5-mozc
|
||||||
fcitx5-gtk
|
fcitx5-gtk
|
||||||
|
|
|
@ -5,11 +5,12 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
services = {
|
services = {
|
||||||
|
libinput.enable = true; # Enable touchpad support
|
||||||
|
libinput.touchpad.naturalScrolling = true;
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Enable touchpad support
|
|
||||||
libinput.enable = true;
|
|
||||||
# Remove xterm terminal
|
# Remove xterm terminal
|
||||||
excludePackages = with pkgs; [xterm];
|
excludePackages = with pkgs; [xterm];
|
||||||
modules = [pkgs.xf86_input_wacom];
|
modules = [pkgs.xf86_input_wacom];
|
||||||
|
|
69
hosts/common/optional/fhs-compat.nix
Normal file
69
hosts/common/optional/fhs-compat.nix
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.envfs.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
programs.nix-ld.enable = lib.mkDefault true;
|
||||||
|
programs.nix-ld.libraries = with pkgs;
|
||||||
|
[
|
||||||
|
acl
|
||||||
|
attr
|
||||||
|
bzip2
|
||||||
|
dbus
|
||||||
|
expat
|
||||||
|
fontconfig
|
||||||
|
freetype
|
||||||
|
fuse3
|
||||||
|
icu
|
||||||
|
libnotify
|
||||||
|
libsodium
|
||||||
|
libssh
|
||||||
|
libunwind
|
||||||
|
libusb1
|
||||||
|
libuuid
|
||||||
|
nspr
|
||||||
|
nss
|
||||||
|
stdenv.cc.cc
|
||||||
|
util-linux
|
||||||
|
zlib
|
||||||
|
zstd
|
||||||
|
]
|
||||||
|
++ lib.optionals (config.hardware.graphics.enable) [
|
||||||
|
pipewire
|
||||||
|
cups
|
||||||
|
libxkbcommon
|
||||||
|
pango
|
||||||
|
mesa
|
||||||
|
libdrm
|
||||||
|
libglvnd
|
||||||
|
libpulseaudio
|
||||||
|
atk
|
||||||
|
cairo
|
||||||
|
alsa-lib
|
||||||
|
at-spi2-atk
|
||||||
|
at-spi2-core
|
||||||
|
gdk-pixbuf
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
libGL
|
||||||
|
libappindicator-gtk3
|
||||||
|
vulkan-loader
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXScrnSaver
|
||||||
|
xorg.libXcomposite
|
||||||
|
xorg.libXcursor
|
||||||
|
xorg.libXdamage
|
||||||
|
xorg.libXext
|
||||||
|
xorg.libXfixes
|
||||||
|
xorg.libXi
|
||||||
|
xorg.libXrandr
|
||||||
|
xorg.libXrender
|
||||||
|
xorg.libXtst
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libxkbfile
|
||||||
|
xorg.libxshmfence
|
||||||
|
];
|
||||||
|
}
|
|
@ -9,7 +9,8 @@
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
avahi = {
|
avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns = true;
|
nssmdns4 = true;
|
||||||
|
nssmdns6 = true;
|
||||||
# for a WiFi printer
|
# for a WiFi printer
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
../common/optional/desktop/japanese.nix
|
../common/optional/desktop/japanese.nix
|
||||||
../common/optional/udisks.nix
|
../common/optional/udisks.nix
|
||||||
../common/optional/tailscale.nix
|
../common/optional/tailscale.nix
|
||||||
|
../common/optional/fhs-compat.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
@ -59,11 +60,12 @@
|
||||||
# Disable if you don't want unfree packages
|
# Disable if you don't want unfree packages
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
segger-jlink.acceptLicense = true;
|
segger-jlink.acceptLicense = true;
|
||||||
permittedInsecurePackages = ["segger-jlink-qt4-794l"];
|
permittedInsecurePackages = ["segger-jlink-qt4-796s"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "ludwig";
|
networking.hostName = "ludwig";
|
||||||
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
|
|
||||||
services.udev.packages = [pkgs.segger-jlink];
|
services.udev.packages = [pkgs.segger-jlink];
|
||||||
|
|
||||||
|
@ -76,7 +78,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
opengl = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
||||||
|
|
Loading…
Reference in a new issue