Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 27d757d81d | |||
| 802a20ee75 | |||
| 12c86fa83e | |||
| f93b8eff73 | |||
| 246edebd8c | |||
| 0980c1c6c6 | |||
| 59c8d3a7d7 | |||
| 0aedc9aa50 | |||
| 7b7a85dcb1 | |||
| 3fe1bb8bb2 |
@@ -21,8 +21,152 @@ Partitionstabelle: gpt
|
||||
Disk-Flags:
|
||||
|
||||
Nummer Anfang Ende Größe Dateisystem Name Flags
|
||||
1 2048s 1050523s 1048476s ext4 uefi
|
||||
2 1050624s 2099199s 1048576s fat32 grub boot, esp
|
||||
3 2099200s 3907028991s 3904929792s root versteckt
|
||||
|
||||
1 2048s 2099199s 2097152s fat32 grub boot, esp
|
||||
2 2099200s 3907028991s 3904929792s nixos versteckt
|
||||
|
||||
Vorgehen um Nixos im User Verzeichnis zu installieren:
|
||||
|
||||
1. Das Git Repo in das Verzeichnis /root/nixos-config clonen
|
||||
2. nixos-generate-config /mnt
|
||||
|
||||
|
||||
parted /dev/sda
|
||||
2 lsblk -f
|
||||
3 mkfs.fat -F32 /dev/sda1 -n GRUB
|
||||
4 p
|
||||
5 lsblk -f
|
||||
6 cryptsetup luksFormat /dev/sda2
|
||||
7 lsblk -f
|
||||
8 cryptsetup luksOpen /dev/sda2 dukebook0
|
||||
9 vgchange -ay
|
||||
10 lsblk -
|
||||
11 lsblk -l
|
||||
12 lsblk -f
|
||||
13 pvcreate /dev/mapper/dukebook0
|
||||
14 vgcreate dukebook0 /dev/mapper/dukebook0
|
||||
15* lvcreate -n home -L900G /dev/mapper/dukebook0
|
||||
16 lvs
|
||||
17 lvcreate -n var -L40G /dev/mapper/dukebook0
|
||||
18 lvcreate -n root -L40G /dev/mapper/dukebook0
|
||||
19 lvcreate -n swap -L16G /dev/mapper/dukebook0
|
||||
20 lvs
|
||||
21 mkfs.ext4 /dev/mapper/dukebook0-root -L root
|
||||
22 mkfs.ext4 /dev/mapper/dukebook0-var -L var
|
||||
23 mkfs.ext4 /dev/mapper/dukebook0-home -L home
|
||||
24 mkswap /dev/mapper/dukebook0-swap -L swap
|
||||
25 lsblk -f
|
||||
26 history
|
||||
27 mount /dev/mapper/dukebook0-root /mnt
|
||||
28 cd /mnt
|
||||
29 mkdir boot var home
|
||||
30 mount /dev/sda1 boot/
|
||||
31 mount /dev/mapper/dukebook0-var var
|
||||
32 mount /dev/mapper/dukebook0-home home/
|
||||
33 swapon /dev/mapper/dukebook0-swap
|
||||
34 lsblk -f
|
||||
35 ll
|
||||
36 nixos-generate-config --root /mnt
|
||||
37 cd etc/
|
||||
38 ll
|
||||
39 cd nixos/
|
||||
40 ll
|
||||
41 cd
|
||||
42 pwd
|
||||
43 git clone https://gitlab.com/duffyduke/nixos-config.git
|
||||
44 git clone https://gitlab.com/duffyduke/nixos-config.git
|
||||
45 git checkout 13896966
|
||||
46 git checkout 13896966 https://gitlab.com/duffyduke/nixos-config.git
|
||||
47 cd /root/nixos-config/
|
||||
48 git checkout 13896966
|
||||
49 ll
|
||||
50 vi configuration.nix
|
||||
51 blkid /dev/sda2 >> configuration.nix
|
||||
52 vi configuration.nix
|
||||
53 cd /etc/nixos/
|
||||
54 ls
|
||||
55 ls -la
|
||||
56 cd /mnt/etc/nixos/
|
||||
57 ll
|
||||
58 cp hardware-configuration.nix /root/nixos-config/
|
||||
59 ll
|
||||
60 cd /mnt/etc/nixos/
|
||||
61 ll
|
||||
62 cd ..
|
||||
63 ll
|
||||
64 dc ..
|
||||
65 ll
|
||||
66 cd /roo
|
||||
67 cd /root/
|
||||
68 ll
|
||||
69 cd nixos-config/
|
||||
70 ll
|
||||
71 #nixos-install --root /mnt -I nixos-config=/
|
||||
72 pwd
|
||||
73 nixos-install --root /mnt -I nixos-config=/root/nixos-config/
|
||||
74 ll
|
||||
75 find . -name default.nix
|
||||
76 grep -ir default.nix
|
||||
77 vi configuration.nix
|
||||
78 vi flake.nix
|
||||
79 vi home.nix
|
||||
80 nixos-install --root /mnt -I nixos-config=/root/nixos-config/
|
||||
81 vi home.nix
|
||||
82 grep -ir default.nix
|
||||
83 cd modules/user/
|
||||
84 ll
|
||||
85 vi kde-home.nix
|
||||
86 vi gnome-home.nix
|
||||
87 vi niri-home.nix
|
||||
88 nixos-install --root /mnt -I nixos-config=/root/nixos-config/
|
||||
89 find . - name default.nix
|
||||
90 cd ..
|
||||
91 ..
|
||||
92 cd ..
|
||||
93 ll
|
||||
94 touch default.nix
|
||||
95 nixos-install --root /mnt -I nixos-config=/root/nixos-config/
|
||||
96 ll
|
||||
97 cp flake.nix default.nix
|
||||
98 vi default.nix
|
||||
99 cd modules/
|
||||
100 ll
|
||||
101 cd user/
|
||||
102 ll
|
||||
103 less niri-home.nix
|
||||
104 ..
|
||||
105 cd ..
|
||||
106 ll
|
||||
107 cd shell/
|
||||
108 ll
|
||||
109 cat aliases.nix
|
||||
110 cp aliases.nix ../../default.nix
|
||||
111 cd --
|
||||
112 cd -
|
||||
113 cd ..
|
||||
114 cd ..
|
||||
115 ll
|
||||
116 vi default.nix
|
||||
117 nixos-install --root /mnt -I nixos-config=/root/nixos-config/
|
||||
118 vi default.nix
|
||||
119 nixos-install --root /mnt -I nixos-config=/root/nixos-config/
|
||||
120 vi default.nix
|
||||
121 nixos-install --root /mnt -I nixos-config=/root/nixos-config/
|
||||
122 nixos-install --root /mnt -I nixos-config=/root/nixos-config/configuration.nix
|
||||
123 grep -i default.nix
|
||||
124 grep -i default.nix *
|
||||
125 vi home.nix
|
||||
126 grep -i default.nix *
|
||||
127 nixos-install --root /mnt -I nixos-config=/root/nixos-config/configuration.nix
|
||||
128 ll
|
||||
129 rm default.nix
|
||||
130 nixos-install --root /mnt -I nixos-config=/root/nixos-config/configuration.nix
|
||||
131 pwd
|
||||
132 parted /dev/sda
|
||||
133 pwd
|
||||
134 histor
|
||||
135 history
|
||||
|
||||
Google fragen:
|
||||
wie kann man nixos wieder herstellen wenn die Konfig im home verzeichnis lieg
|
||||
|
||||
|
||||
+228
-193
@@ -1,6 +1,6 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
@@ -14,6 +14,28 @@
|
||||
# ./modules/desktop/niri.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
# Enable Plymouth boot splash
|
||||
plymouth = {
|
||||
enable = true;
|
||||
# Optional: Choose a theme. "breeze" is standard, or use "spinner", "fade-in", etc.
|
||||
theme = "breeze";
|
||||
};
|
||||
|
||||
# Enable Plymouth in initrd for a graphical LUKS password prompt
|
||||
initrd.systemd.enable = true;
|
||||
|
||||
# Optional: Suppress kernel messages to make the boot look cleaner
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"boot.shell_on_fail"
|
||||
"loglevel=3"
|
||||
"rd.systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
"udev.log_priority=3"
|
||||
];
|
||||
};
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
@@ -22,8 +44,8 @@
|
||||
# LUKS Partition
|
||||
boot.initrd.luks.devices = {
|
||||
dukebook0 = {
|
||||
device = "/dev/disk/by-uuid/aaebdca2-acfb-4156-a8f7-057fd9e9e328";
|
||||
preLVM = true;
|
||||
device = "/dev/disk/by-uuid/5533dddd-216c-453b-aad5-657d8e889f4c";
|
||||
preLVM = true;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -33,197 +55,210 @@
|
||||
# fsType = "ext4";
|
||||
# };
|
||||
|
||||
networking.hostName = "dukebook"; # Define your hostname.
|
||||
# Pick only one of the below networking options.
|
||||
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
#networking.wireless.iwd.enable = true;
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
networking.hostName = "dukebook"; # Define your hostname.
|
||||
# Pick only one of the below networking options.
|
||||
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
#networking.wireless.iwd.enable = true;
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
# xdg.portal = {
|
||||
# enable = true;
|
||||
# extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
|
||||
# config.common.default = [ "kde" "gtk" ];
|
||||
# };
|
||||
programs.dconf.enable = true;
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "de_DE.UTF-8";
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "de";
|
||||
# useXkbConfig = true; # use xkb.options in tty.
|
||||
};
|
||||
|
||||
# Enable Gnome3 Keyring
|
||||
# services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "de_DE.UTF-8";
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "de";
|
||||
# useXkbConfig = true; # use xkb.options in tty.
|
||||
};
|
||||
|
||||
# Enable Gnome3 Keyring
|
||||
#services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
# Enable CUPS to print documents.2
|
||||
services.printing.enable = true;
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# Enable sound.
|
||||
# sound.enable = true;
|
||||
services.pulseaudio.enable = false;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
users.groups.martin.gid = 1001;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.martin = {
|
||||
isNormalUser = true;
|
||||
group = "martin";
|
||||
extraGroups = [ "libvirtd" "networkmanager" "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
uid = 1001;
|
||||
packages = with pkgs; [];
|
||||
};
|
||||
|
||||
# users.extraUsers.martin = {
|
||||
# openssh.authorizedKeys.keys = [
|
||||
# "
|
||||
|
||||
# Flatpaks
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefox
|
||||
tree
|
||||
nextcloud-client
|
||||
keepassxc
|
||||
fastfetch
|
||||
wget
|
||||
git
|
||||
kitty
|
||||
font-awesome
|
||||
symbola
|
||||
noto-fonts-color-emoji
|
||||
material-icons
|
||||
system-config-printer
|
||||
ubuntu-classic
|
||||
cascadia-code
|
||||
virt-manager
|
||||
starship
|
||||
pfetch
|
||||
neovim
|
||||
gnome-software
|
||||
services.printing.enable = true;
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# Enable sound.
|
||||
# sound.enable = true;
|
||||
services.pulseaudio.enable = false;
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
# Bluetooth Support
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
users.groups.martin.gid = 1001;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.martin = {
|
||||
isNormalUser = true;
|
||||
group = "martin";
|
||||
extraGroups = [ "libvirtd" "networkmanager" "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
uid = 1001;
|
||||
packages = with pkgs; [];
|
||||
};
|
||||
|
||||
# users.extraUsers.martin = {
|
||||
# openssh.authorizedKeys.keys = [
|
||||
# "
|
||||
|
||||
# Flatpaks
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefox
|
||||
tree
|
||||
nextcloud-client
|
||||
keepassxc
|
||||
fastfetch
|
||||
wget
|
||||
git
|
||||
kitty
|
||||
font-awesome
|
||||
symbola
|
||||
noto-fonts-color-emoji
|
||||
material-icons
|
||||
system-config-printer
|
||||
ubuntu-classic
|
||||
cascadia-code
|
||||
virt-manager
|
||||
starship
|
||||
pfetch
|
||||
neovim
|
||||
gnome-software
|
||||
xwayland-satellite
|
||||
parted
|
||||
vscodium
|
||||
];
|
||||
|
||||
libreoffice-fresh
|
||||
hunspell
|
||||
signal-desktop
|
||||
];
|
||||
|
||||
programs.niri.enable = true;
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
configure = {
|
||||
customRC = ''
|
||||
set number
|
||||
set cc=80
|
||||
set list
|
||||
set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:»
|
||||
if &diff
|
||||
colorscheme blue
|
||||
endif
|
||||
'';
|
||||
packages.myVimPackage = with pkgs.vimPlugins; {
|
||||
start = [ ctrlp-vim ];
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.neovim = {
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
};
|
||||
|
||||
# Virtualisation
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
#fonts.packages = with pkgs; [
|
||||
# (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||
#];
|
||||
|
||||
nix = {
|
||||
settings.auto-optimise-store = true;
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command" "flakes"
|
||||
];
|
||||
# Automatic Updates
|
||||
#system.autoUpgrade = {
|
||||
# enable = true;
|
||||
# channel = "https://nixos.org/channels/nixos-24.11";
|
||||
#};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
# programs.gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
|
||||
# nix.nixPath = [ "nixpkgs=/home/martin/Nextcloud/IT/mydotfiles/nixos" ];
|
||||
|
||||
# Enable Gnome dash-to-dock
|
||||
nixpkgs.config.firefox.enableGnomeExtensions = true;
|
||||
# services.gnome.chrome-gnome-shell.enable = true;
|
||||
services.gnome.gnome-browser-connector.enable = true;
|
||||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# Copy the NixOS configuration file and link it from the resulting system
|
||||
# (/run/current-system/configuration.nix). This is useful in case you
|
||||
# accidentally delete configuration.nix.
|
||||
# system.copySystemConfiguration = true;
|
||||
|
||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||
#
|
||||
# Most users should NEVER change this value after the initial install, for any reason,
|
||||
# even if you've upgraded your system to a new NixOS release.
|
||||
#
|
||||
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
||||
# so changing it will NOT upgrade your system.
|
||||
#
|
||||
# This value being lower than the current NixOS release does NOT mean your system is
|
||||
# out of date, out of support, or vulnerable.
|
||||
#
|
||||
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
||||
# and migrated your data accordingly.
|
||||
#
|
||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||
system.stateVersion = "25.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
configure = {
|
||||
customRC = ''
|
||||
set number
|
||||
set cc=80
|
||||
set list
|
||||
set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:»
|
||||
if &diff
|
||||
colorscheme blue
|
||||
endif
|
||||
'';
|
||||
packages.myVimPackage = with pkgs.vimPlugins; {
|
||||
start = [ ctrlp-vim ];
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.neovim = {
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
};
|
||||
|
||||
# Virtualisation
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
#fonts.packages = with pkgs; [
|
||||
# (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||
#];
|
||||
|
||||
nix = {
|
||||
settings.auto-optimise-store = true;
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command" "flakes"
|
||||
];
|
||||
# Automatic Updates
|
||||
#system.autoUpgrade = {
|
||||
# enable = true;
|
||||
# channel = "https://nixos.org/channels/nixos-24.11";
|
||||
#};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
# programs.gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
|
||||
# nix.nixPath = [ "nixpkgs=/home/martin/Nextcloud/IT/mydotfiles/nixos" ];
|
||||
|
||||
# Enable Gnome dash-to-dock
|
||||
nixpkgs.config.firefox.enableGnomeExtensions = true;
|
||||
# services.gnome.chrome-gnome-shell.enable = true;
|
||||
services.gnome.gnome-browser-connector.enable = true;
|
||||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# Copy the NixOS configuration file and link it from the resulting system
|
||||
# (/run/current-system/configuration.nix). This is useful in case you
|
||||
# accidentally delete configuration.nix.
|
||||
# system.copySystemConfiguration = true;
|
||||
|
||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||
#
|
||||
# Most users should NEVER change this value after the initial install, for any reason,
|
||||
# even if you've upgraded your system to a new NixOS release.
|
||||
#
|
||||
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
||||
# so changing it will NOT upgrade your system.
|
||||
#
|
||||
# This value being lower than the current NixOS release does NOT mean your system is
|
||||
# out of date, out of support, or vulnerable.
|
||||
#
|
||||
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
||||
# and migrated your data accordingly.
|
||||
#
|
||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||
system.stateVersion = "25.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
||||
Generated
+24
-24
@@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1776136611,
|
||||
"narHash": "sha256-b2pu3Pb28W0bJzQVP3OJHZC5+dgOOeqjlli2WVakKEU=",
|
||||
"lastModified": 1778535464,
|
||||
"narHash": "sha256-kkUQYSv70wynJ/DfnGals6r98I6bK3CVNVTN1zbAd7Y=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "8a423e444b17dde406097328604a64fc7429e34e",
|
||||
"rev": "b659c7ffd40fc9e3bb60d420c79c67e769b9f4ab",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -30,11 +30,11 @@
|
||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1776154571,
|
||||
"narHash": "sha256-ui0v96pzemkAxzcrUnfsul+aFTKaVSqBdSx57BqoV0E=",
|
||||
"lastModified": 1778512904,
|
||||
"narHash": "sha256-GmJZE3/rjeVwB364IGClx4TV50T5ey5V+48f0t8AUD4=",
|
||||
"owner": "sodiboo",
|
||||
"repo": "niri-flake",
|
||||
"rev": "d48cefadf880406bc53c9fbdd1ab62369f341201",
|
||||
"rev": "8994a3e53989f8ce9e6f16c29da15c08e0056402",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -63,11 +63,11 @@
|
||||
"niri-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1776150157,
|
||||
"narHash": "sha256-mlPY8xgVPfTDNZD6Kd5VJBsIXxOTbCkEakxofvKO39w=",
|
||||
"lastModified": 1778389445,
|
||||
"narHash": "sha256-9NyDMVf8ydUZGTzcPcLMQf0o1B3bte/00UGbuXHNWh8=",
|
||||
"owner": "YaLTeR",
|
||||
"repo": "niri",
|
||||
"rev": "874e7fd70e443fecdd4620ce589f509ceb7d8f25",
|
||||
"rev": "38191826cb1e5fb9051a7e141fefe4941a2b4bed",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -78,11 +78,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1775710090,
|
||||
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
|
||||
"lastModified": 1777954456,
|
||||
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
|
||||
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -94,11 +94,11 @@
|
||||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1776067740,
|
||||
"narHash": "sha256-B35lpsqnSZwn1Lmz06BpwF7atPgFmUgw1l8KAV3zpVQ=",
|
||||
"lastModified": 1778430510,
|
||||
"narHash": "sha256-Ti+ZBvW6yrWWAg2szExVTwCd4qOJ3KlVr1tFHfyfi8Q=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "7e495b747b51f95ae15e74377c5ce1fe69c1765f",
|
||||
"rev": "8fd9daa3db09ced9700431c5b7ad0e8ba199b575",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -110,11 +110,11 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1775710090,
|
||||
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
|
||||
"lastModified": 1777954456,
|
||||
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
|
||||
"rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -132,11 +132,11 @@
|
||||
"noctalia-qs": "noctalia-qs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1776043445,
|
||||
"narHash": "sha256-ie3vFwg0eZTTHBDCRm+ee/PecbtdPn/pyL6hlotAfeQ=",
|
||||
"lastModified": 1778464608,
|
||||
"narHash": "sha256-tZRvyaKVP0DJ9DSFrr6K/l3X74Orfirk3Jjo7+br4Qs=",
|
||||
"owner": "noctalia-dev",
|
||||
"repo": "noctalia-shell",
|
||||
"rev": "e56a9db57ed61ea248f109edd60965faf56d3da2",
|
||||
"rev": "761869a561548874fe7e293b157fd7841576b367",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -155,11 +155,11 @@
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1775957204,
|
||||
"narHash": "sha256-d4CVRtAty2GzDYXx4xYQmR+nlOjjKovyprQfZhgLckU=",
|
||||
"lastModified": 1778377995,
|
||||
"narHash": "sha256-uUzHDHqQF1rdVNiTa05L0mML3/d7fpbAShjCRWxbrBQ=",
|
||||
"owner": "noctalia-dev",
|
||||
"repo": "noctalia-qs",
|
||||
"rev": "68e82fe34c68ee839a9c37e3466820e266af0c86",
|
||||
"rev": "d8327a723eed6dd9aebe8e0b162126f390e827df",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -11,11 +11,19 @@
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# Niri Flake (Offizielles Community-Flake)
|
||||
niri.url = "github:sodiboo/niri-flake";
|
||||
|
||||
# Noctalia Shell
|
||||
noctalia.url = "github:noctalia-dev/noctalia-shell";
|
||||
noctalia.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
# Plasma-Manager
|
||||
# plasma-manager = {
|
||||
# url = "github:nix-community/plasma-manager";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# };
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, niri, noctalia, ... }@inputs: {
|
||||
@@ -28,8 +36,12 @@
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.martin = import ./home.nix;
|
||||
}
|
||||
home-manager.users.martin = {
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
niri.nixosModules.niri
|
||||
];
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/4E7A-3767";
|
||||
{ device = "/dev/disk/by-uuid/10AE-597B";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
./modules/shell/alacritty.nix
|
||||
./modules/shell/aliases.nix
|
||||
@@ -9,8 +10,8 @@
|
||||
./modules/user/niri-home.nix
|
||||
# ./modules/user/hyprland-home.nix
|
||||
|
||||
./system/default.nix
|
||||
# ./gnome.nix
|
||||
# ./system/default.nix
|
||||
# ./modules/desktop/gnome.nix
|
||||
];
|
||||
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
|
||||
@@ -11,8 +11,9 @@
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.gdm.enable = true;
|
||||
services.desktopManager.gnome.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb.layout = "de";
|
||||
|
||||
+42
-74
@@ -2,16 +2,14 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
./modules/shell/alacritty.nix
|
||||
./system/default.nix
|
||||
./gnome.nix
|
||||
../shell/alacritty.nix
|
||||
../shell/aliases.nix
|
||||
];
|
||||
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home.username = "martin";
|
||||
home.homeDirectory = "/home/martin";
|
||||
|
||||
# This value determines the Home Manager release that your configuration is
|
||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||
# introduces backwards incompatible changes.
|
||||
@@ -24,40 +22,9 @@
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
|
||||
# home.file.".alias" = {
|
||||
# source = /home/martin/Nextcloud/IT/mydotfiles/.alias;
|
||||
# recursive = true;
|
||||
# };
|
||||
|
||||
# home.file.".bashrc" = {
|
||||
# source = /home/martin/Nextcloud/IT/mydotfiles/.bashrc;
|
||||
# recursive = true;
|
||||
# };
|
||||
|
||||
#home.file.".config/kitty" = {
|
||||
# source = /home/martin/Nextcloud/IT/mydotfiles/kitty;
|
||||
# recursive = true;
|
||||
#};
|
||||
|
||||
#home.file.".thunderbird" = {
|
||||
# source = /home/martin/Nextcloud/IT/mydotfiles/.thunderbird;
|
||||
# recursive = true;
|
||||
#};
|
||||
|
||||
# home.file.".config/neofetch/config.conf" = {
|
||||
# source = /home/martin/Nextcloud/IT/mydotfiles/neofetch/config.conf;
|
||||
# recursive = true;
|
||||
# };
|
||||
|
||||
#home.file.".config/hypr" = {
|
||||
# source = /home/martin/Nextcloud/IT/mydotfiles/hypr;
|
||||
# recursive = true;
|
||||
#};
|
||||
|
||||
#home.file.".purple" = {
|
||||
# source = /home/martin/Nextcloud/IT/mydotfiles/pidgin/.purple;
|
||||
# recursive = true;
|
||||
#};
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
htop
|
||||
@@ -76,7 +43,7 @@
|
||||
# yazi
|
||||
pkgs.p7zip
|
||||
inetutils
|
||||
signal-desktop
|
||||
# signal-desktop
|
||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||
# # "Hello, world!" when run.
|
||||
# pkgs.hello
|
||||
@@ -109,36 +76,36 @@
|
||||
# org.gradle.daemon.idletimeout=3600000
|
||||
# '';
|
||||
};
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
|
||||
theme = {
|
||||
name = "palenight";
|
||||
package = pkgs.palenight-theme;
|
||||
};
|
||||
|
||||
cursorTheme = {
|
||||
name = "Numix-Cursor";
|
||||
package = pkgs.numix-cursor-theme;
|
||||
};
|
||||
|
||||
gtk3.extraConfig = {
|
||||
Settings = ''
|
||||
gtk-application-prefer-dark-theme=1
|
||||
'';
|
||||
};
|
||||
|
||||
gtk4.extraConfig = {
|
||||
Settings = ''
|
||||
gtk-application-prefer-dark-theme=1
|
||||
'';
|
||||
};
|
||||
};
|
||||
# gtk = {
|
||||
# enable = true;
|
||||
#
|
||||
# iconTheme = {
|
||||
# name = "Papirus-Dark";
|
||||
# package = pkgs.papirus-icon-theme;
|
||||
# };
|
||||
#
|
||||
# theme = {
|
||||
# name = "palenight";
|
||||
# package = pkgs.palenight-theme;
|
||||
# };
|
||||
#
|
||||
# cursorTheme = {
|
||||
# name = "Numix-Cursor";
|
||||
# package = pkgs.numix-cursor-theme;
|
||||
# };
|
||||
#
|
||||
# gtk3.extraConfig = {
|
||||
# Settings = ''
|
||||
# gtk-application-prefer-dark-theme=1
|
||||
# '';
|
||||
# };
|
||||
#
|
||||
# gtk4.extraConfig = {
|
||||
# Settings = ''
|
||||
# gtk-application-prefer-dark-theme=1
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
# Home Manager can also manage your environment variables through
|
||||
# 'home.sessionVariables'. If you don't want to manage your shell through Home
|
||||
# Manager then you have to manually source 'hm-session-vars.sh' located at
|
||||
@@ -150,12 +117,13 @@
|
||||
#
|
||||
# /etc/profiles/per-user/martin/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
home.sessionVariables = {
|
||||
# home.sessionVariables = {
|
||||
# EDITOR = "emacs";
|
||||
GTK_THEME = "palenight";
|
||||
};
|
||||
# GTK_THEME = "palenight";
|
||||
# };
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
fonts.fontconfig.enable = true;
|
||||
programs.home-manager.enable = true;
|
||||
# fonts.fontconfig.enable = true;
|
||||
# programs.home-manager.enable = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user