reorganized config

This commit is contained in:
Jakub Kropáček 2024-10-16 00:01:20 +02:00
parent 72fad45917
commit 5af2793bfc
5 changed files with 39 additions and 92 deletions

View file

@ -90,24 +90,7 @@
"disko": "disko", "disko": "disko",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-flatpak": "nix-flatpak", "nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2"
"stable": "stable"
}
},
"stable": {
"locked": {
"lastModified": 1728740863,
"narHash": "sha256-u+rxA79a0lyhG+u+oPBRtTDtzz8kvkc9a6SWSt9ekVc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a3f9ad65a0bf298ed5847629a57808b97e6e8077",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
} }
} }
}, },

View file

@ -4,7 +4,6 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
stable.url = "github:NixOS/nixpkgs/nixos-24.05";
nix-flatpak.url = "github:gmodena/nix-flatpak"; nix-flatpak.url = "github:gmodena/nix-flatpak";
home-manager = { home-manager = {

View file

@ -22,7 +22,6 @@
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. Not needed if using GNOME
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -54,13 +53,8 @@
# Configure console keymap # Configure console keymap
console.keyMap = "cz-lat2"; console.keyMap = "cz-lat2";
# Enable CUPS to print documents.
services.printing = {
enable = true;
drivers = [ pkgs.samsung-unified-linux-driver ];
};
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
# Replace name <krop> with a variable
users.users.krop = { users.users.krop = {
isNormalUser = true; isNormalUser = true;
description = "Jakub Kropáček"; description = "Jakub Kropáček";
@ -119,9 +113,11 @@
}; };
}; };
services.tailscale.enable = true; services = {
tailscale = {
services.flatpak = { enable = true;
};
flatpak = {
enable = true; enable = true;
remotes = [ remotes = [
{ {
@ -143,33 +139,21 @@
"io.dbeaver.DBeaverCommunity" "io.dbeaver.DBeaverCommunity"
]; ];
}; };
avahi = {
services.avahi = {
enable = true; enable = true;
nssmdns4 = true; nssmdns4 = true;
openFirewall = true; openFirewall = true;
}; };
# Some programs need SUID wrappers, can be configured further or are printing = {
# started in user sessions. enable = true;
# programs.mtr.enable = true; drivers = [ pkgs.samsung-unified-linux-driver ];
# programs.gnupg.agent = { };
# enable = true; };
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
networking = { networking = {
nftables.enable = true; nftables.enable = true;
firewall.checkReversePath = "loose"; firewall.checkReversePath = "loose";
}; };
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions

View file

@ -59,6 +59,8 @@
}; };
home-manager = { home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { extraSpecialArgs = {
inherit inputs; inherit inputs;
}; };

View file

@ -51,28 +51,7 @@
# ''; # '';
}; };
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell
# through Home Manager then you have to manually source 'hm-session-vars.sh'
# located at either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/krop/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
# EDITOR = "emacs";
};
dconf = { dconf = {
enable = true;
settings = { settings = {
"org/gnome/shell" = { "org/gnome/shell" = {
disable-user-extensions = false; disable-user-extensions = false;