feat: Add python development services
This commit is contained in:
@@ -22,4 +22,15 @@
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
# Suspend / logind behavior
|
||||
services.upower.enable = true;
|
||||
services.logind.settings = {
|
||||
Login = {
|
||||
HandleLidSwitch = "suspend";
|
||||
HandleLidSwitchExternalPower = "suspend";
|
||||
HandleLidSwitchDocked = "ignore";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
18
sw.nix
18
sw.nix
@@ -21,9 +21,6 @@
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
# Install firefox.
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
@@ -33,6 +30,7 @@
|
||||
htop
|
||||
binutils
|
||||
man
|
||||
chromium
|
||||
lm_sensors
|
||||
oh-my-posh
|
||||
zsh
|
||||
@@ -76,7 +74,7 @@
|
||||
xdg.portal.extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
|
||||
|
||||
# Browsers
|
||||
programs.chromium.enable = true;
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# Virtualization
|
||||
virtualisation.libvirtd.enable = true;
|
||||
@@ -85,16 +83,6 @@
|
||||
# Sensors
|
||||
services.thermald.enable = true;
|
||||
|
||||
# Suspend / logind behavior
|
||||
services.upower.enable = true;
|
||||
services.logind.settings = {
|
||||
Login = {
|
||||
HandleLidSwitch = "suspend";
|
||||
HandleLidSwitchExternalPower = "suspend";
|
||||
HandleLidSwitchDocked = "ignore";
|
||||
};
|
||||
};
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
pythonPkgs = import ./python.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users = {
|
||||
@@ -10,7 +12,7 @@
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
];
|
||||
] ++ pythonPkgs;
|
||||
hashedPassword = "$6$El6e2NhPrhVFjbFU$imlGZqUiizWw5fMP/ib0CeboOcFhYjIVb8oR1V1dP2NjDeri3jMoUm4ZABOB2uAF8UEDjAGHhFuZxhtbHg647/";
|
||||
};
|
||||
|
||||
@@ -20,11 +22,11 @@
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
];
|
||||
] ++ pythonPkgs;
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# Home Manager configs per user
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
|
||||
9
users/python.nix
Normal file
9
users/python.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
[
|
||||
(pkgs.buildFHSEnv {
|
||||
name = "pixi";
|
||||
runScript = "pixi";
|
||||
targetPkgs = pkgs: with pkgs; [ pixi ];
|
||||
})
|
||||
pkgs.uv
|
||||
]
|
||||
Reference in New Issue
Block a user