From 4f0d1031f14087ba036fe1c514b280986c0394f8 Mon Sep 17 00:00:00 2001 From: Bit Borealis Date: Sat, 25 Mar 2023 19:40:56 +0000 Subject: [PATCH] ??? --- configuration.nix | 50 ++++++++++++++++++----------------------------- 1 file changed, 19 insertions(+), 31 deletions(-) diff --git a/configuration.nix b/configuration.nix index 92c1724..732c368 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,18 +1,18 @@ # welcome to susOS config, run nixos-help if you need it . { config, pkgs, ... }: -let unstable = let - nixos-unstable = - builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; - in import nixos-unstable { config = { allowUnfree = true; }; }; - home-manager = +let + unstable = let nixos-unstable = + builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; + in (import nixos-unstable) { config.allowUnfree = true; }; + home-manager = let home-manager-tar = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz"; + in (import "${home-manager-tar}/nixos"); in { imports = [ - ./hosts/vulkan - # home manager - (import "${home-manager}/nixos") - ]; - + home-manager + ./hosts/vulkan + ]; + # nix options nix.settings = { experimental-features = "nix-command flakes"; @@ -83,9 +83,10 @@ in { # add and configure users users.users.hive = { + initialPassword = ""; isNormalUser = true; description = "The Hive"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "dialout" ]; }; # import home-manager config from home.nix @@ -96,6 +97,7 @@ in { nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ # unstable.fish + unstable.printrun pass git neovim @@ -112,30 +114,16 @@ in { pinentryFlavor = "gnome3"; }; - # systemd services / timers - - # systemd.timers."nix-store-cleanup" = { - # wantedBy = [ "timers.target" ]; - # timerConfig = { - # OnBootSec = "5m"; - # OnUnitActiveSec = "5h"; - # Unit = "nix-store-cleanup.service"; - # }; - # }; - - # systemd.services."nix-store-cleanup" = { - # script = '' - # nix-collect-garbage - # ''; - # serviceConfig = { - # Type = "oneshot"; - # }; - # }; - # enable configure services services.printing.enable = true; # printing services.openssh.enable = true; # remote shell services.flatpak.enable = true; #flatpak lol + services.udev.extraRules = + '' + # Enable serial devices, for example 3D printers + SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", TAG+="uaccess" + SUBSYSTEMS=="usb", KERNEL=="ttyACM*", TAG+="uaccess" + ''; system.stateVersion = "22.11"; }