mirror of
https://github.com/0x1d/nix.git
synced 2025-12-14 14:01:29 +01:00
update system
This commit is contained in:
10
os/flake.nix
10
os/flake.nix
@@ -14,19 +14,23 @@
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
./configuration.nix
|
||||
./hw/lenovo-thinkpad-e14.nix
|
||||
./hardware/lenovo-thinkpad-e14.nix
|
||||
./system/base.nix
|
||||
./system/packages.nix
|
||||
./system/desktop/plasma.nix
|
||||
./users/demo.nix
|
||||
./users/master.nix
|
||||
];
|
||||
};
|
||||
testos = nixpkgs.lib.nixosSystem {
|
||||
gnome = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
./configuration.nix
|
||||
./hw/lenovo-thinkpad-e14.nix
|
||||
./hardware/lenovo-thinkpad-e14.nix
|
||||
./system/base.nix
|
||||
./system/packages.nix
|
||||
./system/desktop/gnome.nix
|
||||
./users/demo.nix
|
||||
./users/master.nix
|
||||
];
|
||||
|
||||
@@ -40,4 +40,6 @@
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.ledger.enable = true;
|
||||
}
|
||||
@@ -5,8 +5,6 @@
|
||||
./i18n.nix
|
||||
./network.nix
|
||||
./sound.nix
|
||||
./xserver.nix
|
||||
./virtualisation.nix
|
||||
./packages.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
}
|
||||
|
||||
9
os/system/desktop/gnome.nix
Normal file
9
os/system/desktop/gnome.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ pkgs, ... }: {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "ch";
|
||||
xkbVariant = "";
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
networking = {
|
||||
hostName = "nixos";
|
||||
nameservers = [ "192.168.1.1" "9.9.9.9" "2620:fe::fe" ];
|
||||
#nameservers = [ "127.0.0.1" ];
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dns = "none";
|
||||
@@ -16,4 +17,13 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
# services.dnsmasq = {
|
||||
# enable = true;
|
||||
# resolveLocalQueries = true;
|
||||
# servers = [
|
||||
# ''/.mesh.dcentral.systems/10.101.0.7''
|
||||
# ''9.9.9.9''
|
||||
# ''8.8.8.8''
|
||||
# ];
|
||||
# };
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
services.printing.enable = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
programs.mtr.enable = true;
|
||||
programs.gnupg.agent = {
|
||||
@@ -22,6 +23,8 @@
|
||||
gnumake
|
||||
pinentry
|
||||
direnv
|
||||
dnsutils
|
||||
netcat
|
||||
vim
|
||||
gcc
|
||||
unzip
|
||||
@@ -31,5 +34,9 @@
|
||||
remmina
|
||||
docker-buildx
|
||||
appimage-run
|
||||
gimp
|
||||
];
|
||||
services.logind.extraConfig = ''
|
||||
RuntimeDirectorySize=20G
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
{ pkgs, ... }: {
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
# following configuration is added only when building VM with build-vm
|
||||
vmVariant = {
|
||||
virtualisation = {
|
||||
memorySize = 2048;
|
||||
cores = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,4 +2,10 @@
|
||||
users.users.demo.isNormalUser = true;
|
||||
users.users.demo.initialPassword = "demo";
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
home-manager.users.demo = {
|
||||
home.stateVersion = "23.05";
|
||||
home.username = "demo";
|
||||
home.homeDirectory = "/home/demo";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
home.packages = with pkgs; [
|
||||
plasma5Packages.bismuth
|
||||
kdeconnect
|
||||
kcalc
|
||||
filelight
|
||||
gparted
|
||||
veracrypt
|
||||
nerdfonts
|
||||
tmux
|
||||
btop
|
||||
@@ -29,6 +33,10 @@
|
||||
kubectl
|
||||
chromium
|
||||
obsidian
|
||||
libreoffice-qt
|
||||
hunspell
|
||||
hunspellDicts.de_CH
|
||||
imagemagick
|
||||
];
|
||||
|
||||
programs = {
|
||||
|
||||
Reference in New Issue
Block a user