updated persistence and config
This commit is contained in:
parent
55009fff4a
commit
183a6ba43e
@ -10,7 +10,7 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
@ -25,27 +25,35 @@
|
|||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Prague";
|
time.timeZone = "Europe/Prague";
|
||||||
|
|
||||||
# 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 = "en_US.UTF-8";
|
|
||||||
# console = {
|
|
||||||
# font = "Lat2-Terminus16";
|
|
||||||
# keyMap = "us";
|
|
||||||
# useXkbConfig = true; # use xkb.options in tty.
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
desktopManager.mate.enable = true;
|
desktopManager.mate.enable = true;
|
||||||
|
xkb.layout = "us, cz";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure keymap in X11
|
i18n = {
|
||||||
# services.xserver.xkb.layout = "us";
|
defaultLocale = "en_US.UTF-8";
|
||||||
# services.xserver.xkb.options = "eurosign:e,caps:escape";
|
|
||||||
|
extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "cs_CZ.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "cs_CZ.UTF-8";
|
||||||
|
LC_MEASUREMENT = "cs_CZ.UTF-8";
|
||||||
|
LC_MONETARY = "cs_CZ.UTF-8";
|
||||||
|
LC_NAME = "cs_CZ.UTF-8";
|
||||||
|
LC_NUMERIC = "cs_CZ.UTF-8";
|
||||||
|
LC_PAPER = "cs_CZ.UTF-8";
|
||||||
|
LC_TELEPHONE = "cs_CZ.UTF-8";
|
||||||
|
LC_TIME = "cs_CZ.UTF-8";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-emoji
|
||||||
|
corefonts
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
# services.printing.enable = true;
|
# services.printing.enable = true;
|
||||||
@ -59,7 +67,11 @@
|
|||||||
# };
|
# };
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
# services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
# 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’.
|
||||||
users.users.konsta = {
|
users.users.konsta = {
|
||||||
@ -71,36 +83,34 @@
|
|||||||
keepassxc
|
keepassxc
|
||||||
gimp
|
gimp
|
||||||
inkscape
|
inkscape
|
||||||
libreoffice
|
|
||||||
onlyoffice-desktopeditors
|
onlyoffice-desktopeditors
|
||||||
|
hypnotix
|
||||||
|
blueman
|
||||||
|
mpv
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
|
services = {
|
||||||
|
network-manager-applet.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# List packages installed in system profile.
|
# List packages installed in system profile.
|
||||||
# You can use https://search.nixos.org/ to find more packages (and options).
|
# You can use https://search.nixos.org/ to find more packages (and options).
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
helix
|
helix
|
||||||
|
git
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
nixpkgs.config = {
|
||||||
# started in user sessions.
|
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
# programs.mtr.enable = true;
|
"corefonts"
|
||||||
# programs.gnupg.agent = {
|
];
|
||||||
# enable = true;
|
};
|
||||||
# enableSSHSupport = 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;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
|
|||||||
@ -6,6 +6,10 @@
|
|||||||
directories = [
|
directories = [
|
||||||
"/etc/nixos"
|
"/etc/nixos"
|
||||||
"/var/lib/bluetooth"
|
"/var/lib/bluetooth"
|
||||||
|
{
|
||||||
|
directory = "/etc/NetworkManager/system-connections";
|
||||||
|
inInitrd = true;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
directory = "/var/lib/nixos";
|
directory = "/var/lib/nixos";
|
||||||
inInitrd = true;
|
inInitrd = true;
|
||||||
@ -19,7 +23,6 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
# Preserve user files
|
|
||||||
users.konsta = {
|
users.konsta = {
|
||||||
directories = [
|
directories = [
|
||||||
".mozilla"
|
".mozilla"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user