mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 05:36:11 +01:00
refractor and thor update
This commit is contained in:
31
flake.nix
31
flake.nix
@@ -15,16 +15,35 @@
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||
systemSettings = {
|
||||
profile = "zion"; # select 'thor' or 'zion'
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
system = lib.nixosSystem {
|
||||
zion = lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
(./. + ("/" + systemSettings.profile)
|
||||
+ "/configuration.nix")
|
||||
zion/configuration.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
|
||||
users.mike = import ./home.nix;
|
||||
|
||||
extraSpecialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
specialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
};
|
||||
};
|
||||
thor = lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
thor/configuration.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
|
||||
@@ -42,23 +42,29 @@
|
||||
LC_TIME = "pl_PL.UTF-8";
|
||||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "pl";
|
||||
xkbVariant = "";
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
displayManager = {
|
||||
lightdm = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
desktopManager = {
|
||||
xfce = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# I use zsh btw
|
||||
environment.shells = with pkgs; [ bash zsh ];
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
layout = "pl";
|
||||
xkbVariant = "";
|
||||
};
|
||||
|
||||
# Configure console keymap
|
||||
console.keyMap = "pl2";
|
||||
|
||||
@@ -90,15 +96,11 @@
|
||||
isNormalUser = true;
|
||||
description = "Mike";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = [
|
||||
pkgs.discord
|
||||
pkgs.spotify
|
||||
];
|
||||
packages = [];
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
environment.systemPackages =
|
||||
(with pkgs; [
|
||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
@@ -107,22 +109,32 @@
|
||||
neofetch
|
||||
zsh
|
||||
pavucontrol
|
||||
home-manager
|
||||
firefox
|
||||
htop
|
||||
nerdfonts
|
||||
ntfs3g
|
||||
dosfstools
|
||||
woeusb
|
||||
|
||||
python3
|
||||
|
||||
steam-run
|
||||
|
||||
# cmake
|
||||
# clang
|
||||
# gcc
|
||||
# gtest
|
||||
])
|
||||
|
||||
++
|
||||
|
||||
(with pkgs-unstable; [
|
||||
neovim
|
||||
cmake
|
||||
gcc
|
||||
clang
|
||||
gtest
|
||||
]);
|
||||
|
||||
fonts.packages = with pkgs; [ nerdfonts ];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
programs.mtr.enable = true;
|
||||
@@ -150,6 +162,19 @@
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://cache.nixos.org/"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
|
||||
Reference in New Issue
Block a user