Compare commits
4 commits
a12c6266cc
...
ef1f55cd8d
| Author | SHA1 | Date | |
|---|---|---|---|
| ef1f55cd8d | |||
| 5da20a0e67 | |||
| 8b32545af3 | |||
| 8bc3e82f6d |
4 changed files with 24 additions and 16 deletions
|
|
@ -68,7 +68,11 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations."dregil" = import ./hosts/dregil { inherit inputs; };
|
nixosConfigurations."dregil" = nixpkgs-unstable.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
modules = [ ./hosts/dregil ];
|
||||||
|
};
|
||||||
homeConfigurations = import ./outputs/homeConfigurations inputs;
|
homeConfigurations = import ./outputs/homeConfigurations inputs;
|
||||||
|
|
||||||
nixOnDroidConfigurations.default = with inputs;
|
nixOnDroidConfigurations.default = with inputs;
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,6 @@ in {
|
||||||
(aspellWithDicts (dicts: with dicts; [ en en-computers en-science de ]))
|
(aspellWithDicts (dicts: with dicts; [ en en-computers en-science de ]))
|
||||||
|
|
||||||
# system tools
|
# system tools
|
||||||
btop
|
|
||||||
htop-vim # htop with vim bindings
|
htop-vim # htop with vim bindings
|
||||||
erdtree # du+tree had sex
|
erdtree # du+tree had sex
|
||||||
dua # ncdu but better
|
dua # ncdu but better
|
||||||
|
|
@ -117,6 +116,9 @@ in {
|
||||||
# better cat
|
# better cat
|
||||||
bat.enable = true;
|
bat.enable = true;
|
||||||
|
|
||||||
|
# htop replacement with a nice UI
|
||||||
|
btop.enable = true;
|
||||||
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAutosuggestions = true;
|
enableAutosuggestions = true;
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,10 @@ in {
|
||||||
networking.networkmanager.enable =
|
networking.networkmanager.enable =
|
||||||
true; # Easiest to use and most distros use this by default.
|
true; # Easiest to use and most distros use this by default.
|
||||||
|
|
||||||
|
networking.extraHosts = ''
|
||||||
|
127.0.0.1 localhost dregil.localdomain dregil
|
||||||
|
'';
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
# Configure network proxy if necessary
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
@ -121,6 +125,9 @@ in {
|
||||||
environment.etc."nix/inputs/nixpkgs".source = inputs.nixpkgs-unstable.outPath;
|
environment.etc."nix/inputs/nixpkgs".source = inputs.nixpkgs-unstable.outPath;
|
||||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs-unstable}" ];
|
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs-unstable}" ];
|
||||||
|
|
||||||
|
nix.settings.max-jobs = 3;
|
||||||
|
nix.settings.cores = 4;
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,12 @@
|
||||||
{ inputs, ... }:
|
{ lib, config, pkgs, inputs, ... }: {
|
||||||
let
|
imports = [
|
||||||
inherit (inputs.nixpkgs-unstable.lib) nixosSystem;
|
({ inputs, lib, ... }: {
|
||||||
|
nixpkgs = {
|
||||||
system = "x86_64-linux";
|
config.allowUnfree = true;
|
||||||
|
overlays = with inputs; [ emacs.overlay ];
|
||||||
pkgs = import inputs.nixpkgs-unstable {
|
};
|
||||||
inherit system;
|
nix.registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
|
||||||
config = { allowUnfree = true; };
|
})
|
||||||
};
|
|
||||||
in nixosSystem {
|
|
||||||
inherit system pkgs;
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
modules = [
|
|
||||||
../../modules/security.nix
|
../../modules/security.nix
|
||||||
../../modules/common-system.nix
|
../../modules/common-system.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue